<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="Css/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
<!--
function fnOnPageChanged(page) {
	g('search').action += '&page='+page;
	document.search.submit();
}
function g(id) {
	return document.getElementById(id);
}
function fnOnCreated() {
	var url = '<?php echo $this->_url('Create',array('type'=>$type)); ?>';
	document.location.href = url;
}

// -->
</script>
<style type="text/css">
<!--
body {
	background-color: #ddeef2;
}
-->
</style>
</head>
<body>
<div id="main_title"><a href="#">后台管理中心</a>—<?php echo $listTitle; ?><div class="opr"><button class="btnA" onclick="fnOnCreated();">新建发布</button></div>
</div>
<!--div id="main_title2">| <a href="#">添加帮助文档</a></div-->
<div id="main_list">
<form name="search" id="search" method="post" action="<?=$this->_url('Special')?>">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
  <tr>
    <td align="right">编号：</td>
    <td align="left"><input type="text" name="code" id="code" value="<?=$_REQUEST['code']?>" size="20" /></td>
    <td align="left"><input type="submit" name="psearch" id="psearch" value="搜索" /></td>   	
  </tr>  
</table>
</form>
  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
    <td width="15%" align="center" bgcolor="#9EC1DE" class="title"><?=$listName?></td>
    <td width="15%" align="center" bgcolor="#9EC1DE" class="title">描述</td>
    <td width="15%" align="center" bgcolor="#9EC1DE" class="title">Money</td>
    <td width="20%" align="center" bgcolor="#9EC1DE" class="title">记录增加时间</td>
    <td width="20%" align="center" bgcolor="#9EC1DE" class="title">记录更新时间</td>
    <td align="center" bgcolor="#9EC1DE" class="title">操作</td>
  </tr>
  <?php $i = 0; foreach($rowset as $row): $css_class = $i % 2 ? 'even' : 'odd'; $rowid = array('id' => $row[$pk],'type' => $type,'access'=>$_REQUEST['access']); ?>
  <tr>
    <td align="center" bgcolor="#F4FAFB" class="content"><?php if($isCode) echo $row['User']['code']; else echo $row['class']['name'];?></td>
    <td align="center" bgcolor="#F4FAFB" class="content"><?=$row['des']?></td>
    <td align="center" bgcolor="#F4FAFB" class="content"><?=$row['money']?></td>
    <td align="center" bgcolor="#F4FAFB" class="content"><?=date('Y-m-d H:i:s',$row['dateline'])?></td>
    <td align="center" bgcolor="#F4FAFB" class="content"><?=date('Y-m-d H:i:s',$row['updated'])?></td>
    <td align="center" bgcolor="#F4FAFB" class="content"><a href="<?php echo $this->_url('edit', $rowid); ?>">编辑</a> | <a href="<?php echo $this->_url('remove', $rowid); ?>" onclick="return confirm('<?php echo h(_T('ui_p_remove_confirm')); ?>');">删除</a></td>
  </tr>
  <?php $i++; endforeach; ?>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
  <tr>
    <td><?php printf(_T('ui_p_page_info'), $pager->totalCount, $pager->count, $pager->pageCount, $pager->currentPage + 1); ?></td>
  </tr>
</table>
</div>
<div id="main_content">
</div>
<div id="main_copy">Copyright&copy;2003 – 2009 ITeam Monkey. All Rights Reserved ITeam Monkey 版权所有 </div>
</body>
</html>
